﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="evection_new.aspx.cs" Inherits="AnyOffice.general.attend.personal.evection_new" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>出差登记</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
			<script src="/module/date_selector/popcalendar.js"></script>
			<script src="/aspnet_client/core/function.js"></script>
			<script>
function CheckForm()
{
	if (document.getElementById("sltLeaderId").length == 0)
	{
		alert("未设置考勤管理人员，请联系系统管理员！");
		return (false);
	}

   if(document.Form1.txtEvectionDest.value=="")
   { alert("出差地点不能为空！");
     return (false);
   }
   
    if(!checkIsDate(document.Form1.txtEvectionDate1.value))
   {
	 alert("开始日期不正确！");
	 return (false);
   }
   
   if(!checkIsDate(document.Form1.txtEvectionDate2.value))
   {
	 alert("结束日期不正确！");
	 return (false);
   }

   return (true);
}
			</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG height="18" src="/images/menu/attendance.gif" width="18" align="absMiddle"><SPAN class="big3">&nbsp;出差登记</SPAN><BR>
						</TD>
					</TR>
				</TABLE>
				<TABLE class="small" cellSpacing="1" cellPadding="2" width="500" align="center" border="0" bgcolor=#000000>
					<TR>
						<TD class="TableData" noWrap>出差地点：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtEvectionDest" type="text" maxLength="20" size="12" name="txtEvectionDest"
								runat="server"></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>事由：</TD>
						<TD class="TableData"><B><TEXTAREA class="BigInput" id="txtReason" name="txtReason" rows="3" cols="50" runat="server"></TEXTAREA>
							</B>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>日期：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtEvectionDate1" type="text" maxLength="10" size="12" name="txtEvectionDate1"
								runat="server"><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtEvectionDate1,'yyyy-mm-dd','');"
								src="/module/date_selector/calendar.gif" align="absMiddle" border="0"> 至 <INPUT class="BigInput" id="txtEvectionDate2" type="text" maxLength="10" size="12" name="txtEvectionDate2"
								runat="server"><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtEvectionDate2,'yyyy-mm-dd','');"
								src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>审批人员：</TD>
						<TD class="TableData">
							<SELECT class="BigSelect" id="sltLeaderId" name="sltLeaderId" runat="server" datatextfield="UserName"
									datavaluefield="UserId"></SELECT>									
							<asp:CheckBox id="ckbMobile" runat="server" Text="使用手机短信提醒" Visible="False"></asp:CheckBox>
						</TD>
					</TR>
					<TR>
						<TD class="TableControl" noWrap align="center" colSpan="2"><INPUT class="BigButton" title="请假" onclick="return CheckForm();" type="submit" value="确定"
								name="submit"> &nbsp;&nbsp; <INPUT class="BigButton" onclick="location='leave.aspx'" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
